import re
import mechanize

def Compress(url):
	
	LINK = "http://is.gd"
	browser = mechanize.Browser()
	browser.open(LINK)

	browser.select_form(nr=0)
	browser["URL"] = url
	browser.submit()

	for link in browser.links():
		if link.url == link.text:
			return link.url
